using System.Collections;
using Rdl;

namespace GTame.ReportParser
{

    public class DataValueType
    {

        private string _Name;
        private string _Value;

        public string Name
        {
            get
            {
                return _Name;
            }
            set
            {
                _Name = value;
            }
        }

        public string Value
        {
            get
            {
                return _Value;
            }
            set
            {
                _Value = value;
            }
        }

        public DataValueType()
        {
        }

        public Rdl.DataValueType Write()
        {
            Rdl.DataValueType dataValueType = new Rdl.DataValueType();
            System.Collections.ArrayList arrayList1 = new System.Collections.ArrayList();
            System.Collections.ArrayList arrayList2 = new System.Collections.ArrayList();
            if (_Name != null)
            {
                arrayList1.Add(_Name);
                arrayList2.Add(1);
            }
            if (_Value != null)
            {
                arrayList1.Add(_Value);
                arrayList2.Add(2);
            }
            dataValueType.Items = arrayList1.ToArray();
            dataValueType.ItemsElementName = (Rdl.ItemsChoiceType22[])arrayList2.ToArray(typeof(Rdl.ItemsChoiceType22));
            arrayList2 = arrayList1 = null;
            return dataValueType;
        }

    } // class DataValueType

}

